set terminal pdf
set output 'result.pdf'

file1 = 'output_build_in.dat'
file2 = 'output_own.dat'

set title 'Barriers'
set xlabel 'nodes'
set ylabel 'over all runtime[us]'
set grid

plot file1 using 1:4 title "Own Barrier",file2 using 1:4 title "Build in barrier"

